0 CpxTRS
↳1 DependencyGraphProof (BOTH BOUNDS(ID, ID), 19 ms)
↳2 CpxTRS
↳3 TrsToWeightedTrsProof (BOTH BOUNDS(ID, ID), 0 ms)
↳4 CpxWeightedTrs
↳5 TypeInferenceProof (BOTH BOUNDS(ID, ID), 0 ms)
↳6 CpxTypedWeightedTrs
↳7 CompletionProof (UPPER BOUND(ID), 0 ms)
↳8 CpxTypedWeightedCompleteTrs
↳9 CpxTypedWeightedTrsToRntsProof (UPPER BOUND(ID), 0 ms)
↳10 CpxRNTS
↳11 CompleteCoflocoProof (⇔, 86 ms)
↳12 BOUNDS(1, 1)
f(g(x), g(y)) → f(p(f(g(x), s(y))), g(s(p(x))))
p(0) → g(0)
g(s(p(x))) → p(x)
p(0) → g(0)
p(0) → g(0) [1]
p(0) → g(0) [1]
p :: 0 → g 0 :: 0 g :: 0 → g |
const
Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules:
The TRS has the following type information:
Rewrite Strategy: INNERMOST |
0 => 0
const => 0
p(z) -{ 1 }→ 1 + 0 :|: z = 0
eq(start(V),0,[p(V, Out)],[V >= 0]). eq(p(V, Out),1,[],[Out = 1,V = 0]). input_output_vars(p(V,Out),[V],[Out]). |
CoFloCo proof output:
Preprocessing Cost Relations
=====================================
#### Computed strongly connected components
0. non_recursive : [p/2]
1. non_recursive : [start/1]
#### Obtained direct recursion through partial evaluation
0. SCC is completely evaluated into other SCCs
1. SCC is partially evaluated into start/1
Control-Flow Refinement of Cost Relations
=====================================
### Specialization of cost equations start/1
* CE 2 is refined into CE [3]
### Cost equations --> "Loop" of start/1
* CEs [3] --> Loop 2
### Ranking functions of CR start(V)
#### Partial ranking functions of CR start(V)
Computing Bounds
=====================================
#### Cost of chains of start(V):
* Chain [2]: 1
with precondition: [V=0]
Closed-form bounds of start(V):
-------------------------------------
* Chain [2] with precondition: [V=0]
- Upper bound: 1
- Complexity: constant
### Maximum cost of start(V): 1
Asymptotic class: constant
* Total analysis performed in 6 ms.